<?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
        <title>Blog</title>

    </head>
    <body>

        <h1>Blog</h1>
        <div>
<?php  if (!isset($_SESSION['username'] )) {
            echo  "<a href='login.php'>login</a> | <a href='register.php'>registreer</a> | <a href=''>wachtwoord vergeten</a> | <a href=''>loginnaam vergeten</a>&nbsp;&nbsp;";
        } else {
            echo  $_SESSION['username']." | <a href='logout.php'>logout</a>&nbsp;&nbsp";
        }
            
?>
        </div>
        
        <a href="pagina.php">Nieuw bericht</a>

        
    </body>
</html>
